package com.lagou.module.service;

import com.lagou.module.dao.UserDao;
import com.lagou.module.dao.UserDaoImpl;
import com.lagou.module.entity.User;
import com.lagou.module.factory.DaoFactory;

public class UserServiceImpl implements UserService {

    //自定义成员变量    记录数据访问对象
    private UserDao userDao;

    public UserServiceImpl() {
        this.userDao = DaoFactory.getUserDao();
    }

    @Override
    public User userLoginService(User user) {

       return userDao.userLogin(user);
    }
}
